##### My (demuredemeanor) muttrc sub pager config
# Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
# https://notabug.org/demure/dotfiles
# legacy repo http://github.com/demure/dotfiles
# vim:set syntax=muttrc:

### Pager View Options ### {{{
set pager_index_lines = 10  ## Number of lines to show
set pager_context = 3       ## Number of context lines to show
set pager_stop              ## Don't go to the next message automatically
set menu_scroll             ## Scroll in menus
set tilde                   ## Show tildes like in vim
unset markers               ## No ugly plus signs
### End Pager View Options ### }}}

set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
auto_view text/html
alternative_order text/enriched text/plain text/html text

### Pager Key Bindings ### {{{
bind pager a    noop                    ## Unbinds alias key
bind pager k    previous-line
bind pager j    next-line
bind pager g    noop                    ## Removes error from next binding
bind pager gg   top
bind pager GG   bottom
bind pager R    group-reply

bind attach <return>    view-mailcap    ## View attachments properly.
### End Pager Key Bindings ### }}}

### Macros ### {{{
macro pager \Cu         "|urlview<enter>" "call urlview to open links"          ## Handle URLs.
macro attach V          "<pipe-entry>w3m -v -T text/html -dump | less<enter>"   ## Process html to text, for stupid html only emails
macro pager d           "<exit><delete-message>"                                ## Deletes message with out auto opening next message
### End Macros ### }}}
